package chai.ning.cs.chars;

public class CharactersTest {

	public static void main(String[] args) {
		char[] chars = { '不', '破', '楼', '兰', '终', '不', '还' };

		CharSequence cs = new Characters(chars);
		System.out.println(cs);
		chars[2] = '得';
		System.out.println(cs);

		System.out.println(cs.length());

		for (int x = 0, n = cs.length(); x < n; x++) {
			char ch = cs.charAt(x);
			System.out.println(ch);
		}
		System.out.println(" ------------- ");
		CharSequence x = cs.subSequence(4, 4);
		System.out.println(x);
	}

}
